import request from '@/utils/request'

// 查询列表
export function getUList(query) {
  return request({
    url: '/md/uCoinRecord/list',
    method: 'get',
    params: query
  })
}

// 查询详细
export function URecordDetail(recordId) {
  return request({
    url: '/md/uCoinRecord/' + recordId,
    method: 'get'
  })
}

// 新增
export function addURecord(data) {
  return request({
    url: '/md/uCoinRecord',
    method: 'post',
    data: data
  })
}

// 修改
export function updateURecord(data) {
  return request({
    url: '/md/uCoinRecord',
    method: 'put',
    data: data
  })
}

// 删除
export function delURecord(exchangeId) {
  return request({
    url: '/md/uCoinRecord/' + exchangeId,
    method: 'delete'
  })
}

// 修改状态
export function changeURecordStatus(data) {
  return request({
    url: '/md/uCoinRecord/updateStatus',
    method: 'put',
    data: data
  })
}
